import 'package:any_reader/public.dart';

class Retrieval {
  String score;
  String name;
  Retrieval({
    Key key,
    this.score = "",
    this.name = "",
  });
  factory Retrieval.fromJson(String score, String name) {
    return Retrieval(
      score: score,
      name: name,
    );
  }
  static List<Retrieval> listFromJson(List<dynamic> json) {
    List<Retrieval> _list = [];
    json.forEach((value) {
      _list.add(Retrieval.fromJson(
        value['score'].toString(),
        value['name'].toString(),
      ));
    });
    return _list;
  }
}
